import 'package:my_soft/configs/routers.dart';
import 'package:my_soft/pages/home/view.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

import 'configs/routers.dart';

void main() {
  runApp(const MainApp());
}

class MainApp extends StatelessWidget {
  const MainApp({super.key});

  @override
  Widget build(BuildContext context) {
    return GetMaterialApp(
      initialRoute: AppRouters.home,
      unknownRoute: AppPages.onUnknown,
      getPages: AppPages.getPages,
      title: "番茄软件库",
      home: HomePage(),
      theme: ThemeData(
        primaryColor: const Color(0xFF3533A4),
        hintColor: const Color(0xFF346DFC),
        brightness: Brightness.light,
        tabBarTheme: const TabBarTheme(labelColor: Colors.black),
        textTheme: const TextTheme(
          displayLarge: TextStyle(fontSize: 72.0, fontWeight: FontWeight.bold),
          titleMedium: TextStyle(fontSize: 36.0, fontStyle: FontStyle.italic),
          bodyLarge: TextStyle(fontSize: 14.0),

        ),
      ),
    );
  }
}
